package club.caihappy.pojo;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * Created by DELL on 2021/10/6
 **/
//@Component
public class Cat implements InitializingBean, DisposableBean {
    public Cat() {
        System.out.println("Cat...constructor");
    }

    public void destroy() throws Exception {
        System.out.println("Cat...destory");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("cat...初始化完成并设置完属性");
    }
}
